package spaceCraft;

/**
 * The <code>Engine</code> object represents engine that gives us
 * acceleration. Extends the <code>Device</code>
 */
public class Engine extends Device {

    private int acceleration;

    /**
     * Constructor sets acceleration value which cannot be changed
     *
     * @param productInfo  represents basic information about engine as device
     * @param acceleration represents maximum acceleration we can gain
     */
    public Engine(ProductInfo productInfo, int acceleration) {
        super(productInfo);
        this.acceleration = acceleration;
    }

    /**
     * get acceleration value
     *
     * @return acceleration value;
     */
    public int getAcceleration() {
        return acceleration;
    }
}
